#define _CRT_SECURE_NO_WARNINGS

#include "SeqList.h"


void TestSeqList()
{
	SL sl, * psl;
	psl = &sl;
	SeqListInit(psl);
	SeqListPopBack(psl);
	SeqListPopFront(psl);


	SeqListPushBack(psl, 1);
	SeqListPushBack(psl, 2);
	SeqListPushBack(psl, 3);
	SeqListPushBack(psl, 4);
	SeqListPushBack(psl, 5);

	SeqListPrint(psl);
	SeqListPushFront(psl, 6);
	SeqListPushFront(psl, 7);
	SeqListPushFront(psl, 8);
	SeqListPushFront(psl, 9);


	SeqListPrint(psl);

	SeqListPopBack(psl);
	SeqListPopBack(psl);
	SeqListPopBack(psl);

	SeqListPrint(psl);


	SeqListPopFront(psl);
	SeqListPopFront(psl);

	SeqListPrint(psl);


	SeqListInsert(psl, 123, 10);
	SeqListPrint(psl);

	SeqListClear(psl);
	SeqListPrint(psl);

	SeqListErase(psl, 1);
	SeqListErase(psl, -1);
	SeqListPrint(psl);

	SeqListDestroy(psl);
}
int main()
{
	TestSeqList();
	return 0;
}